﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using System.Windows.Media;
using System.Windows.Media.Imaging;

namespace MoMoTransferVN_WP.page
{
    public partial class PopuTemplate : ChildWindow
    {
        bool status = true;      
        public PopuTemplate()
        {
            InitializeComponent();
            btnClose.Click += (s, e) =>
            {
                this.DialogResult = true;
                this.Close();
            };
        }

        private void Image_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            status = !status;
            if(status==true)
            {
                imgCheck.Source = new BitmapImage(new Uri(@"/Assets/Images/CheckActivated.png", UriKind.Relative));
                
                btnClose.IsEnabled = true;
            }
            else
            {
                imgCheck.Source = new BitmapImage(new Uri(@"/Assets/Images/CheckNormal.png", UriKind.Relative));
                
                btnClose.IsEnabled = false;
            }

            //imgCheck.Source = imgSource;
        }

    }
}
